﻿using Entity;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IHotelDAL
{
    public interface IBaseDAL<T> where T : BaseEntity
    {
        public bool CreateEntity(T entity);
        public bool DeleteEntity(T entity);
        public bool DeleteEntity(string id);
        public bool UpdateEntity(T entity);
        public DbSet<T> GetEntities();
        public HotelDbContext GetContext();
    }
}
